package bairui.international.console.web.controller.product.category;

import com.lianjing.sh.spring.web.controller.enhance.module.Module;
import com.lianjing.sh.spring.web.controller.enhance.module.ModuleHead;
import com.lianjing.sh.spring.web.controller.enhance.module.body.PageFilterInfo;
import com.lianjing.sh.spring.web.controller.enhance.module.body.PageModuleBody;

import bairui.international.console.web.controller.product.category.product.C_Product_Category_ProductAdd_AddAccess;
import bairui.international.console.web.controller.product.category.product.C_Product_Category_ProductDelete_Delete;
import bairui.international.console.web.controller.product.category.product.C_Product_Category_ProductDown_Submit;
import bairui.international.console.web.controller.product.category.product.C_Product_Category_ProductEdit_EditAccess;
import bairui.international.console.web.controller.product.category.product.C_Product_Category_ProductExport_ExcelExport;
import bairui.international.console.web.controller.product.category.product.C_Product_Category_ProductImport_ExcelImport;
import bairui.international.console.web.controller.product.category.product.C_Product_Category_ProductPublish_Submit;
import bairui.international.console.web.controller.product.category.product.C_Product_Category_ProductUp_Submit;

/**
 *
 * Module_ProductPage
 *
 */
class Module_ProductPage{

	/**
	 * 分页模块
	 */
	public Module module(
		com.lianjing.sh.spring.web.controller.enhance.module.feature.PageModuleFeatureSupport moduleFeature,
		C_Product_Category_Detail_ProductPage.ProductPage.Operate c_Product_Category_Detail_ProductPage_ProductPage_Operate
	,	C_Product_Category_ProductAdd_AddAccess.AddAccess.Operate c_Product_Category_ProductAdd_AddAccess_AddAccess_Operate
	,	C_Product_Category_ProductImport_ExcelImport.ExcelImport.Operate c_Product_Category_ProductImport_ExcelImport_ExcelImport_Operate
	,	C_Product_Category_ProductExport_ExcelExport.ExcelExport.Operate c_Product_Category_ProductExport_ExcelExport_ExcelExport_Operate
	,	C_Product_Category_ProductEdit_EditAccess.EditAccess.Operate c_Product_Category_ProductEdit_EditAccess_EditAccess_Operate
	,	C_Product_Category_ProductDelete_Delete.Delete.Operate c_Product_Category_ProductDelete_Delete_Delete_Operate
	,	C_Product_Category_ProductPublish_Submit.Submit.Operate c_Product_Category_ProductPublish_Submit_Submit_Operate
	,	C_Product_Category_ProductUp_Submit.Submit.Operate c_Product_Category_ProductUp_Submit_Submit_Operate
	,	C_Product_Category_ProductDown_Submit.Submit.Operate c_Product_Category_ProductDown_Submit_Submit_Operate
		,java.util.List<bairui.international.model.domain.jpa.TB_WineBottleNorms> wineBottleNormsWine
	){
		return
			new Module(
					new ModuleHead("产品列表")
						.addOperate(
							c_Product_Category_ProductAdd_AddAccess_AddAccess_Operate
								.defaultComment("添加")
								.defaultTarget(com.lianjing.sh.spring.web.controller.base.operate.OperateTarget.Popup)
						)
						.addOperate(
							c_Product_Category_ProductImport_ExcelImport_ExcelImport_Operate
								.defaultComment("导入")
						)
						.addOperate(
							c_Product_Category_ProductExport_ExcelExport_ExcelExport_Operate
								.defaultComment("导出")
						)
					, 
					new PageModuleBody(
							moduleFeature,
							ProductPage_OutputInfo.outputInfo(),
							new PageFilterInfo(
									ProductPage_BaseFilter.info(), 
									ProductPage_OutputInfo.pageInfo(), 
									ProductPage_OutputInfo.orderInfo()
								),
							c_Product_Category_Detail_ProductPage_ProductPage_Operate
							,new java.util.Map.Entry<String, java.util.List<?>>() {
								@Override public String getKey() {
									return "wineBottleNormsWine.id";
								}
								@Override public java.util.List<?> getValue() {
									return wineBottleNormsWine;
								}
								@Override public java.util.List<?> setValue(java.util.List<?> value) {
									return value;
								}
							}
						)
						.addListOperate(
							c_Product_Category_ProductEdit_EditAccess_EditAccess_Operate
								.defaultComment("详情")
						)
						.addListOperate(
							c_Product_Category_ProductDelete_Delete_Delete_Operate
								.defaultComment("删除")
						)
						.addListOperate(
							c_Product_Category_ProductPublish_Submit_Submit_Operate
								.defaultComment("发布")
						)
						.addListOperate(
							c_Product_Category_ProductUp_Submit_Submit_Operate
								.defaultComment("上架")
						)
						.addListOperate(
							c_Product_Category_ProductDown_Submit_Submit_Operate
								.defaultComment("下架")
						)
						.setIdentifier("id")
				);
	}
	
	public Module module(
		C_Product_Category_Detail_ProductPage.ProductPage.Operate c_Product_Category_Detail_ProductPage_ProductPage_Operate
	,	C_Product_Category_ProductAdd_AddAccess.AddAccess.Operate c_Product_Category_ProductAdd_AddAccess_AddAccess_Operate
	,	C_Product_Category_ProductImport_ExcelImport.ExcelImport.Operate c_Product_Category_ProductImport_ExcelImport_ExcelImport_Operate
	,	C_Product_Category_ProductExport_ExcelExport.ExcelExport.Operate c_Product_Category_ProductExport_ExcelExport_ExcelExport_Operate
	,	C_Product_Category_ProductEdit_EditAccess.EditAccess.Operate c_Product_Category_ProductEdit_EditAccess_EditAccess_Operate
	,	C_Product_Category_ProductDelete_Delete.Delete.Operate c_Product_Category_ProductDelete_Delete_Delete_Operate
	,	C_Product_Category_ProductPublish_Submit.Submit.Operate c_Product_Category_ProductPublish_Submit_Submit_Operate
	,	C_Product_Category_ProductUp_Submit.Submit.Operate c_Product_Category_ProductUp_Submit_Submit_Operate
	,	C_Product_Category_ProductDown_Submit.Submit.Operate c_Product_Category_ProductDown_Submit_Submit_Operate
		,java.util.List<bairui.international.model.domain.jpa.TB_WineBottleNorms> wineBottleNormsWine
	){
		return this.module(
				null,
				c_Product_Category_Detail_ProductPage_ProductPage_Operate
	,			c_Product_Category_ProductAdd_AddAccess_AddAccess_Operate
	,			c_Product_Category_ProductImport_ExcelImport_ExcelImport_Operate
	,			c_Product_Category_ProductExport_ExcelExport_ExcelExport_Operate
	,			c_Product_Category_ProductEdit_EditAccess_EditAccess_Operate
	,			c_Product_Category_ProductDelete_Delete_Delete_Operate
	,			c_Product_Category_ProductPublish_Submit_Submit_Operate
	,			c_Product_Category_ProductUp_Submit_Submit_Operate
	,			c_Product_Category_ProductDown_Submit_Submit_Operate
				,wineBottleNormsWine
			);
	}
	
	
	/**
	 * 输出模型
	 */
	

}
